home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ cgi script using ODBC - How to ?
- Date: 5 Mar 1996 02:06:00 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4hg7i8$2ot@news1.usa.pipeline.com>
- References: <313B4156.6946@danish.com>
- NNTP-Posting-Host: pipe16.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline v3.5.0
-
- On Mar 04, 1996 11:15:34 in article <C++ cgi script using ODBC - How to ?>,
- 'Ihab Badr <ihab@danish.com>' wrote:
-
-
- >I am trying to write a cgi program using C++. This cgi program will need
- >to access a database using ODBC.
- >Because it is a cgi script I have no need for a CRecordView or any
- >visual object for that matter.
- >This means that the Wizard doesn't do a great deal for me and i have to
- >do most of the work.
- >So what do I have to do? Has anyone done this sort of thing before ?
- >Does anyone have a sample app that I can look at to see how to set up
- >the MFC WinApp object ?
-
- Not sure what a cgi script is, but if the program is not a Win32 GUI
- executable,
- you will not be able to use the MFC ODBC classes. Reason is that some of
- the database functions require there to be a CWindow and CWinApp objects
- to be instantiated. This dependency may be removed in the future as
- it isn't needed for database operations.
-
- You can use the ODBC API. It's more work but not too difficult.
- Bookstores
- have MS Press ODBC 2.x Programmer's Reference manual. It has many
- examples as well as narrative programmer's guide style chapters.
-
- --
- Pete Grant
- Kalevi, Inc.
- Software Engineering & development
-